package com.sjd.mall.domain;

import lombok.Builder;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ProjectName: sjd
 * @Package: com.sjd.protal.account.dao
 * @ClassName: AccountRechargeOrderDO
 * @Author: genglong
 * @Description: 金豆明细表
 * @Date: 2022/1/11 11:13
 * @Version: 1.0
 */
@Data
@Builder
@Table(name = "sjd_account_gloden_bean_details")
public class SjdAccountGlodenBeanDetailsDO implements Serializable {

    private static final long serialVersionUID = -4636174760688862459L;

    /**
     * 订单号
     */
    @Id
    private String orderNo;

    /**
     * 账户id
     */
    private Long accountId;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 订单类型，1-充值，2-农作物消费，3-课程消费，4-土地消费，5-农具消费，6-种子消费，7-退款
     */
    private String orderType;

    /**
     * 订单状态，00-订单创建，01-充值成功，02-充值失败，03-消费成功，04-消费失败，05-退款成功，06-退款失败
     */
    private String status;

    /**
     * 订单金额
     */
    private BigDecimal amount;

    /**
     * 实际金额
     */
    private BigDecimal actualAmount;

    /**
     * 优惠金额
     */
    private BigDecimal discountAmount;

    /**
     * 金豆数量
     */
    private Integer goldenBeanNum;

    /**
     * 微信订单号
     */
    private String transactionId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 充值时间
     */
    private String orderRechargeTime;

    /**
     * 消费时间
     */
    private String orderConsumeTime;

    /**
     * 退款时间
     */
    private String orderRefoundTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date modifyTime;
}
